import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import Home from '../views/Home.vue'
const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name:"Home",
        component:Home,
    },
    {
      path: "/articles",
      name: "articles",
      component: () =>import("../views/Articles.vue")
    },
    {
      path:'/my',
      name:"my",
      component:()=>import("../views/Articles.vue")
    },
    {
      path: "/articleDetail",
      name: "articleDetail",
      component: () =>import("../views/ArticleDetail.vue")
    },
    {
      path:'/message',
      name:"message",
      component:()=>import("../views/Message.vue")
    },
    {
      path:'/archive',
      name:"archive",
      component:()=>import("../views/Archive.vue")
    },
    {
      path:'/project',
      name:'project',
      component:()=>import("../views/Project.vue")
    },
    {
      path:'/edit',
      name:'edit',
      component:()=>import("../views/Edit.vue")
    },
    {
      path:'/try',
      name:'try',
      component:()=>import("../views/test.vue")
    }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router

